package com.sl;

import java.io.File;
import java.io.FileInputStream;
import java.io.InputStream;
import java.io.ObjectInputStream;

public class Test03 {
	public static void main(String[] args)throws Exception {
		File obj = new File("E:\\PR");
		Test01 test01 = null;
		try(
				InputStream in = new FileInputStream(obj);
				ObjectInputStream oin = new ObjectInputStream(in);
				
				) {
			Object ect = oin.readObject();
			test01 =(Test01)ect;
		} 
		System.out.println(test01);
	}
}
